﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IBindableEnumeration.cs" company="">
//   
// </copyright>
// <summary>
//   The BindableEnumeration interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium
{
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// The BindableEnumeration interface.
    /// </summary>
    /// <typeparam name="T">
    /// </typeparam>
    public interface IBindableEnumeration<T>
    {
        #region Public Events

        /// <summary>
        ///   The item added.
        /// </summary>
        event Action<IBindableEnumeration<T>> ItemAdded;

        /// <summary>
        ///   The item removed.
        /// </summary>
        event Action<IBindableEnumeration<T>> ItemRemoved;

        #endregion

        #region Public Properties

        /// <summary>
        ///   Gets the items.
        /// </summary>
        IEnumerable<T> Items { get; }

        #endregion
    }
}